package top.hudk.rpc.rpc1;

import java.io.Serializable;

/**
 * 作用：用户类
 *
 * @author hudk
 * @date 2020/12/9 23:24
 */
public class User implements Serializable {

    public User(){}

    public User(int id, String name){
        this.id = id;
        this.name = name;
    }

    /**
     * 用户ID
     */
    private int id;

    /**
     * 用户名
     */
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
